#include <memory.h>
#include "EpollServer.hpp"
#include "Log.hpp"

using namespace LogModule;
int main(int argc, char* argv[])
{
	ENABLE_CONSOLE_LOG();
	if(argc != 2)
	{
		std::cout << "Usage: " << argv[0] << " port" << std::endl;
		return 1;
	}
	int port = std::stoi(argv[1]);

	std::shared_ptr<EpollServer> server = std::make_shared<EpollServer>(port);	
	server->Init();
	server->Start();
	return 0;
}